import request from '@/js/request'

const BASE_URL = '/model/attributes/copy'

/**
 * 获取批量添加的模型属性
 * @param currentPage
 * @param pageSize
 * @param condition 搜索条件
 * @returns {Promise<AxiosResponse<any>>}
 */
export function getAddBatchAttrs(currentPage, pageSize, condition) {
  return request.post(BASE_URL, condition, {params: {currentPage, pageSize}})
}

/**
 * 删除批量添加时备选属性
 * @param ids
 * @returns {Promise<AxiosResponse<any>>}
 */
export function deleteCopyAttrs(ids) {
  return request.delete(BASE_URL, {params: {ids: ids.join(',')}})
}
